package xyz.perkd.model;

import org.apache.pdfbox.cos.COSBase;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class POTicket {
    public String orderType; // 右上角
    public String orderData; // 跟 BillTo 第一行在一起
    public String revisedData; // 跟 BillTo 第二行在一起
    public String orderNo; // 在 BillTo 后面
    public String seller; // 跟 ShipTo 第三行在一起
    public String factoryCode; // 跟 BillTo 第四行在一起
    public String[] billTo = new String[4];
    public String shipTo;
    public String content;
    public String labelling;
    public String title;
    public String style;
    public List<POLine> lines = new ArrayList<>();
    public String orderTotal;
    public String notice;
    public COSBase noticeToken;

    @Override
    public String toString() {
        return "POTicket{" +
                "orderType='" + orderType + '\'' +
                ", orderData='" + orderData + '\'' +
                ", revisedData='" + revisedData + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", seller='" + seller + '\'' +
                ", factoryCode='" + factoryCode + '\'' + "\n" +
                ", billTo='" + Arrays.toString(billTo) + '\'' + "\n" +
                ", shipTo='" + shipTo + '\'' +
                ", content='" + content + '\'' +
                ", labelling='" + labelling + '\'' +
                ", title='" + title + '\'' +
                ", style='" + style + '\'' + "\n" +
                ", lines=" + lines +"\n" +
                ", orderTotal='" + orderTotal + '\'' +
                ", notice='" + notice + '\'' +
                '}';
    }
}
